package com.zhijiaoyun.model;

import java.io.Serializable;
import java.util.Date;

/**
 * @author shisfish
 * @date 2017/6/6
 */
public class BuyHistory implements Serializable {
	private static final long serialVersionUID = -3678718261154673874L;

	private Long buyId;

    private Long userId;

    private Long goodsId;

    private Integer goodsType;

    private Date createTime;

    public BuyHistory() {
		super();
	}

	public BuyHistory(Long userId, Long goodsId, Integer goodsType) {
		super();
		this.userId = userId;
		this.goodsId = goodsId;
		this.goodsType = goodsType;
		this.createTime = new Date();
	}

	public Long getBuyId() {
        return buyId;
    }

    public void setBuyId(Long buyId) {
        this.buyId = buyId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

	public Integer getGoodsType() {
		return goodsType;
	}

	public void setGoodsType(Integer goodsType) {
		this.goodsType = goodsType;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
}